package org.geektimes.projects.user.web.controller;

import org.geektimes.projects.user.domain.User;
import org.geektimes.web.mvc.controller.PageController;
import org.geektimes.web.mvc.controller.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import java.util.Collection;

/**
 * @Author: jipeng
 * @Description:
 * @Date: Created in 2021/3/31 6:44
 */
@Path("/test")
public class UserInfoController implements RestController {

    @GET
    @Path("/get")
    public String infos(HttpServletRequest request, HttpServletResponse response) throws Throwable {

        return "hello word";
    }


    @POST
    @Path("/post")
    public String postTest(HttpServletRequest request, HttpServletResponse response) throws Throwable {

        return "this is post method";
    }




}
